Skip to content

chore: add .pi/APPEND_SYSTEM.md with the project hard rules for Worker sessions - #5

Merged
xhqing merged 1 commit into
mainfrom
chore/append-system
Nov 7, 2026
Merged

xhqing merged 1 commit into
mainfrom
chore/append-system

Conversation

@xhqing

@xhqing xhqing commented Nov 7, 2026

Copy link
Copy Markdown
Owner

What & why

Global rules changed on 2026-11-07 into a Leader / Worker split: work on sub-projects is done by temporary Worker sessions started inside the sub-project (or its git worktree), while the Leader only syncs local main, creates worktrees, dispatches tasks and cleans up. A Worker session cannot see the Agent project's context, so the project-specific hard rules must live in this repo.

This PR adds .pi/APPEND_SYSTEM.md (50 lines) — pi appends it to the system prompt at session start.

Content (project-specific only, global rules are not repeated)

  • Worker role boundary: report back to the Leader, never touch local main, never create / remove worktrees.
  • Rule text is a system-prompt payload, not prose for humans.
  • One engine per file — no merging, no shared snippets between the three engines.
  • Section skeleton and the four-step thinking architecture names are fixed; the engine-specific third step must not be ported across engines.
  • Engine-exclusive protocols (Anti-Shortcut → Flash; Independent Judgment + Anti-Shallow-Convergence → GLM; none for Pro), round floors and GLM's language-consistency constraint must not be moved to other engines.
  • The five Output Isolation rules must not be weakened or dropped.
  • Chinese and English versions must be changed in the same commit; the README comparison table must follow.
  • Runnable verification snippet plus the current baseline (Pro 5 ## / 9 *, Flash 6 / 14, GLM 7 / 18).

No rule file or README content was modified — this is a pure addition of a session-layer config file.

Verification

  • The verification snippet in the new file was executed: all three engine pairs match the documented baseline.
  • gitleaks dir on both changed files: no leaks found.

@xhqing
xhqing enabled auto-merge (squash) November 7, 2026 08:19
@xhqing
xhqing merged commit 409bb74 into main Nov 7, 2026
1 check passed
@xhqing
xhqing deleted the chore/append-system branch November 7, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant